package cn.edu.hqu.javaee.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/course")
public class WelcomeController {
		@GetMapping("/welcome")//http://localhost:8080/course/welcome
		public String welcome() {
			return "welcome";//welcome---templates里面的welcome.html
		}
}
